package com.tuo51.childcare.repository.photoAlbum;

import com.tuo51.childcare.domain.photoalbum.PhotoAlbum;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;


public interface PhotoAlbumRepository extends JpaRepository<PhotoAlbum, String>, JpaSpecificationExecutor<PhotoAlbum> {

       Page<PhotoAlbum> findByChildrenIdOrderByCreatedDesc(String childrenId, Pageable pageable);

}
